<?php
class linkModel extends model 
{
	public function __construct(){
		parent::__construct('beauty_link','link_id');
	}
	
	public function insertLinkUrl($channel,$url,$user_id) {
		$link_name = $channel['title'];
		$query = "INSERT INTO beauty_link (link_url,user_id,dir_id,link_name,link_type,link_create_time) 
				  VALUES ('$url','$user_id','8','$link_name','1',now())";
		return $this->execute($query,'insert');  
	}
}
?>